#ifndef PROPCOORDINATEDIALOG_H
#define PROPCOORDINATEDIALOG_H

#include <QDialog>
#include "propcoordinatedialogscene.h"
#include "propdata.h"
#include "common.h"

namespace Ui {
    class PropCoordinateDialog;
}

class PropCoordinateDialog : public QDialog
{
    Q_OBJECT

public:
    explicit PropCoordinateDialog(PropData *m, double lat = -999.0, double lon = -999.0, QWidget *parent = 0);
    ~PropCoordinateDialog();

signals:
    void logMessage(QString message, MESSAGE_TYPE mtype);
    void newLatLon(double lat, double lon);

private:
    Ui::PropCoordinateDialog *ui;
    PropCoordinateDialogScene *scene;
    PropData *map;
    QPixmap *mapimg;

private slots:
    void setSelectedCoords(double x, double y);
    void on_closePushButton_clicked();
};

#endif // PROPCOORDINATEDIALOG_H
